home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / exec / remresource.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  1KB  |  68 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: remresource.c,v 1.4 1996/08/13 13:56:07 digulla Exp $
  4.     $Log: remresource.c,v $
  5.     Revision 1.4  1996/08/13 13:56:07  digulla
  6.     Replaced __AROS_LA by __AROS_LHA
  7.     Replaced some __AROS_LH*I by __AROS_LH*
  8.     Sorted and added includes
  9.  
  10.     Revision 1.3  1996/08/01 17:41:17  digulla
  11.     Added standard header for all files
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <exec/execbase.h>
  17. #include <aros/libcall.h>
  18. #include <dos/dos.h>
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.     #include <clib/exec_protos.h>
  24.  
  25.     __AROS_LH1(void, RemResource,
  26.  
  27. /*  SYNOPSIS */
  28.     __AROS_LHA(APTR, resource,A1),
  29.  
  30. /*  LOCATION */
  31.     struct ExecBase *, SysBase, 82, Exec)
  32.  
  33. /*  FUNCTION
  34.     Removes a resource from the system resource list.
  35.  
  36.     INPUTS
  37.     resource - Pointer to the resource.
  38.  
  39.     RESULT
  40.  
  41.     NOTES
  42.  
  43.     EXAMPLE
  44.  
  45.     BUGS
  46.  
  47.     SEE ALSO
  48.     AddResource(), OpenResource()
  49.  
  50.     INTERNALS
  51.  
  52.     HISTORY
  53.  
  54. ******************************************************************************/
  55. {
  56.     __AROS_FUNC_INIT
  57.  
  58.     /* Arbitrate for the resource list */
  59.     Forbid();
  60.  
  61.     Remove((struct Node *)resource);
  62.  
  63.     /* All done. */
  64.     Permit();
  65.     __AROS_FUNC_EXIT
  66. } /* RemResource */
  67.  
  68.